/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.nys.conci.citas.entidad;

import com.nys.conci.base.ObjetoBase;
import java.io.Serializable;
import javax.persistence.*;
import javax.validation.constraints.NotNull;

/**
 *
 * @author Oak
 */
@Entity
@Table(name = "estado_cita", schema = "public")
@SequenceGenerator(name = "ID_SEQ", sequenceName = "seq_estado_cita", allocationSize = 1)
public class EstadoCita extends ObjetoBase implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "ID_SEQ")
    private Integer id_estado_cita;
    private String nombre;
    private String descripcion;

    //<<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>>
    //<<<>>>><<<>>>><<<>>>><<<>>>>  CONSTRUCTOR  <<<>>>><<<>>>><<<>>>><<<>>>><<<>>>>
    //<<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>>
    public EstadoCita() {
    }

    public EstadoCita(Integer id_estado_cita) {
        this.id_estado_cita = id_estado_cita;
    }

    //<<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>>
    //<<<>>>><<<>>>><<<>>>><<<>>>>  GETS & SETS  <<<>>>><<<>>>><<<>>>><<<>>>><<<>>>>
    //<<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>>


    /**
     * @return the nombre
     */
    public String getNombre() {
        return nombre;
    }

    /**
     * @param nombre the nombre to set
     */
    public void setNombre(String nombre) {
        this.nombre = nombre;
    }

    /**
     * @return the descripcion
     */
    public String getDescripcion() {
        return descripcion;
    }

    /**
     * @param descripcion the descripcion to set
     */
    public void setDescripcion(String descripcion) {
        this.descripcion = descripcion;
    }

    /**
     * @return the id_estado_cita
     */
    public Integer getId_estado_cita() {
        return id_estado_cita;
    }

    /**
     * @param id_estado_cita the id_estado_cita to set
     */
    public void setId_estado_cita(Integer id_estado_cita) {
        this.id_estado_cita = id_estado_cita;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final EstadoCita other = (EstadoCita) obj;
        if (this.id_estado_cita != other.id_estado_cita && (this.id_estado_cita == null || !this.id_estado_cita.equals(other.id_estado_cita))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 41 * hash + (this.id_estado_cita != null ? this.id_estado_cita.hashCode() : 0);
        return hash;
   }            
}
